<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>示例4</title>
</head>
<body>
    <div id="app">
        <h1 v-if="isShow">表达式的值为真，就能显示</h1>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script type="text/javascript">
        var vm=new Vue({
            el:'#app',
            data:{
                isShow:true
            }
        });
    </script>
</body>
</html>